package com.train.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.common.resp.PageResp;
import com.train.system.dto.seat.TrainSeatDTO;
import com.train.system.dto.seat.TrainSeatPageDTO;
import com.train.system.po.TrainSeatPO;
import com.train.system.resp.seat.TrainSeatPageResp;

import java.util.List;

/**
 * @author baitiaojun
 * @description 针对表【trainSeat(座位)】的数据库操作Service
 * @createDate 2025-02-20 23:20:20
 */
public interface TrainSeatService extends IService<TrainSeatPO> {

    PageResp<TrainSeatPageResp> pageList(TrainSeatPageDTO trainSeatPageDTO);

    void remove(Long id);

    void removeSeatByTrainCode(String trainCode);

    void saveBatchTrainSeat(List<TrainSeatDTO> trainCarriageDTOList);

    boolean existsSeatByTrainCode(String trainCode);

    List<TrainSeatPageResp> getTrainSeatListByTrainCodes(List<String> trainCodes);
}
